A U.S. court has ordered the National Park Service to restore the Pride flag at Stonewall National Monument in New York.