The president said he believed the court would rule against him over plans to amend birthright citizenship.