The decision reverses a lower-court ruling last week that had said the ban was unconstitutional. https://www.nytimes.com