The rulings are the latest successful legal challenges to the government’s restrictions.