A U.S. court has ordered the Washington Post to reinstate a columnist who was fired over social media posts.