NSW law proposes halt on gender lessons