Tenet Healthcare Corp., the nation’s second largest hospital chain, has agreed to pay $900 million to settle claims brought by the U.S. Justice Department that it had systematically bilked Medicare by using several illegal billing practices.

The settlement stems at least in part from a whistleblower lawsuit filed in November 2002 by attorneys Peter F. Vaira, John E. Riley, Jack L. Gruenstein and William J. Murray Jr. of Vaira & Riley in Philadelphia on behalf of two whistleblowers — Peter Salvatori and Sara C. Iverson.