White House says Trump's tariffs 'legally sound' amid mounting court defeats