Mall company , second-biggest in the U.S. , says Canadian firm Brookfield Asset has agreed to invest $ 2.5 billion in return for 30 % ownership , helping it exit Chapter 11 and avert a hostile takeover .