Clashes over a citizenship law broke out hours before a visit by US President Donald Trump.