U.K. budget airline has struck a deal to be acquired after rejecting four previous offers by the American investment firm.