President Trump has sought to claw back funds for public broadcasting and foreign aid, sparking a fierce debate over the power of the purse.