Judge allows homeless to sleep in vehicles