A US judge in New York on Wednesday ruled that President Donald Trump may not legally block Twitter users from his account on the social media platform based on their political views.