A US federal court has blocked some of Donald Trump's tariffs after lawsuit argued president exceeded his authority.