Second-parent adoptions, widely used by same-sex couples to form families, were declared legal Monday by the California Supreme Court.

The 6-1 ruling legitimizes as many as 20,000 adoptions that had been placed in limbo by a lower court decision and brings California in line with 21 other states that have validated second-parent adoptions.