A surprisingly large number of countries: https://www.economist.com/the-economist-explains/2017/09/01/why-transgender-people-are-being-sterilised-in-some-european-countries (paywall jumping archive link: https://archive.is/K336g)
Switzerland, Greece and 18 other, mostly eastern European, countries have a final hurdle: sterilisation.
Many states in the U.S. have ‘proof of surgery’ requirements before they will legally recognize people’s trans people’s gender identity: https://www.lgbtmap.org/equality-maps/identity_document_laws