The B-2 cost $1 billion more than 25 years ago. Adjusted for inflation, it's probably much more.
Apparently the F-22 cost something between 150 and 700 millions apiece: https://www.wired.com/2011/12/f-22-real-cost/
Even if you factor in the development costs (which isn't really useful since the purchase was truncated very early), the F-22 isn't close to having cost $1B.