The breaking up of a prayer event over gender segregation has galvanized liberals worried about a slide into coercion, with battle lines mirroring divisions found in overhaul fight