Defense Secretary Ash Carter has ordered a six-month study that will look at formally ending the ban on transgender people serving in the military.