Judge orders municipality to fix non-functioning street lights