U.S. President Donald Trump slapped tariffs on imported solar panels and washing machines, angering trade partners as he took his first major protectionist move a year into his term.