A Superior Court judge sided with the city Monday, declaring that a lawsuit contained no legal grounds for stopping the conversion of a Bayview warehouse into a 100-bed homeless shelter.