The agency may commence any action to protect or enforce any right conferred upon it by any law, mortgage, contract of insurance, or any other agreement. The agency may bid for and purchase property sold in satisfaction thereof at any foreclosure or other sale or may otherwise acquire and take possession of that property.