The FIA have disregarded their own rules regarding lapped cars under a safety car for the sake of entertainment.
If they wanted a race at the end, they should have red flagged the race so Hamilton could stick on a new set of tyres and at least make it a fair race.