Your girlfriend should consider discussing these issues with a counselor who specializes in transgender issues. She will be required to undergo counseling before she would be considered for gender reassignment surgery, and she should be aware of the limitations of the procedure.

I don't think it is likely that you will find a court that would issue an order that she reside with you instead of her parents.