President Donald Trump says he is prepared to sustain attacks on Syria if the government continues its use of chemical weapons.