How do I revert the MUST_CHANGE in this SQL Statement?
That query didn't change anything so you don't need to revert anything.

That is just a simple select generating an ALTER LOGINstatement.

If you didn't execute the resulting statement nothing has been changed.