The president said the levies will take effect in 30 days unless Canada drops what the administration called “discriminatory” trade barriers against U.S. products.