By filing the lawsuit, Giuliani kept a promise to fight the provisions and fueled his momentum as a self-described national spokesman in favor of immigration, a position that has set him apart from many Republicans.