Speaker Paul D. Ryan, after urging President Trump to keep DACA, said Wednesday that the president made “the right call” — and promised a legislative answer.