Maine’s highest court has ruled against a law that removed the statute of limitations for civil claims about child sexual abuse.