The Anne Arundel County policy change came after Education Secretary Linda McMahon urged the Justice Department to punish the district, citing parental rights protections.