It's well known that DeVos backed LGBT in the past, even as far back as the 1990s,
https://mobile.nytimes.com/2017/01/28/us/politics/betsy-devos-gay-transgender-rights.html so this isn't really a surprise. Weird that this issue wasn't worked out with her before nomination, since this should have been known. The trump administration is so disorganized and generally a mess.
The Obama admin actions on transgender rights were getting hit pretty hard in the courts (the statute they purported to interpret had an explicit exception allowing discrimination in bathrooms and locker rooms, so it was on shaky ground) and weren't propagated through
the proper notice and comment procedures required for new federal regulations. They came from good intentions though. Interestingly, I believe that if the administration had gone through the proper procedures of regulating by putting this out for comment and passing a regulation, it would have ended up being much more difficult, procedurally, for the trump administration to roll this back, as well as doing better in the courts. Not sure why they did it the way they did.