Supreme Court preserves law that aims to keep Native American children with tribal families