The US has B52s that are cheaper, but they used B2s for this operation. It seems they don't believe Iran's air defenses to be toothless.
Also the B2 is better suited for extreme endurance missions like this where the plane is in flight for >36 hours. It has a toilet, microwave and a cot for the pilots to use during the more mundane parts of the mission.