The House on Wednesday voted to pass a bill that could imprison health care providers for providing gender-affirming care for minors.