Court restrains police enforcement