Meta has signed an AI infrastructure deal with Nebius worth up to $27 billion over five years, deepening its push to secure long-term computing capacity.