Justices say 2015 legislation allowing state to halt payments to couples whose underage kids are imprisoned on security charges 'unconstitutionally harms the right of equality'