The new law blocks California courts from enforcing out-of-state court orders revoking custody for parents who allow their children to get illegal sex changes and protects parents and their children from legal ramifications for pursuing cross-sex medical treatments that are illegal for minors in their home states.