The move, which he promised to do on the campaign trail, is already facing legal challenges.