The White House has insisted such ads are “public service announcements,” but the use of taxpayer funds has drawn criticism from both Democrats and Republicans.