The US senate has confirmed Donald Trump's pick to head the Environmental Protection Agency despite fierce opposition from environmental groups.