He does a great job of attacking the presidents position on the issue, not the president himself. He isn’t using his pulpit to attack a person, but advance a belief he has. And he wraps it up by promising to pray for the president. He isn’t praying that harm would befall him, but that his heart and mind would be changed.
Can you see the difference between Piper and Anderson?