I don’t think a presidential candidate can legally in a campaign promise a Supreme Court appointment or any other federal job to anyone.
He not promising. Trump just needs to bring up the fact, when we he is asked about the SC and Scalia, that in his view Ted Cruz would be a perfect SC Justice in the mold of Scalia.