The New York mayor defended his social media post as he navigates mounting criticism for his views on Israel.