Judge blocks restrictions on St. Paul homeless program