Brookfield Asset Management Inc. has an agreement in principle to end litigation challenging its $3.3 billion buyout of TerraForm Power Inc., according to a court filing Monday.