Six financial firms that received capital injections as part of a broad-based bailout during the 2007-2009 financial crisis have repurchased the investments, the Treasury Department said on Wednesday.

The Treasury said a total of $2.7 billion from the repurchase of preferred shares, as well as accrued dividends on them, was being returned by the companies to the government.

The firms participated in the Capital Purchase Program, part of the Troubled Asset Relief Program, or TARP, under which the Treasury bought preferred shares of qualifying firms that met certain standards designed to improve their stability.

(Reporting by Glenn Somerville; Editing by Dan Grebler)