A new law aims to stop other states from punishing children who come to California for transgender surgeries and other gender-affirming care, a move that will intensify conflicts between Democratic Gov. Gavin Newsom and other Republican governors amid the country’s escalating culture war.