A California law that takes effect this summer will grant minors on public insurance the ability to get mental health treatment without their parents’ consent, a privilege that their peers with private insurance have had for years. But the law has become a flashpoint in the state’s culture wars.