A man who climbed Big Ben carrying a Palestinian flag in London has been given 250 hours of public service and a fine of £800.