US President Donald Trump is vowing to step up so-called "extreme vetting" of foreigners, in response to a truck ramming attack on cyclists and pedestrians in New York.