President Donald Trump has blocked a Chinese government-backed firm's acquisition of an American semiconductor maker.