The First Amendment applies to all three branches of the government, not just Congress. The executive branch can attempt to obtain a gag order, but the 1st Amendment nonetheless places limits upon them.
See, for example, https://en.wikipedia.org/wiki/New_York_Times_Co._v._United_S...