Judge’s stop-and-frisk ruling puts mayoral candidates under microscope