The U.S. government has spent millions of dollars replacing troops kicked out of the military because of their sexual orientation.