The media then gets favors if they comply. There's no law against a politician playing favorites in the media.
The media can also choose to ignore. It's not in the White House's interest to make enemies in the media.