Trump knew he would get the Evangelical vote, but he really wanted the LGBTI vote.
The Evangelicals (not to mention certain Catholic bishops) are solidly welded onto the Republicans, so Trump knows he can go against their inbuilt hostility to LGBTI with impunity.