The decisions reverse lower courts and strengthen executive authority over immigration policy.