Wedgetail jet program ​seemed doomed by delays and rising costs—until Congress stepped in.