Hours after canceling a program protecting younger illegal immigrants, the president suggested he would “revisit this issue” if Congress did not act.