Judge Orders Hotel Shelters to Stay Open