Trump calls for ending visa program after N.Y. attack, blasts Democrats