The main purpose of this legislation is to prevent certain proposed changes to credit fees that are charged by two major government-sponsored enterprises: the Federal National Mortgage Association (Fannie Mae) and the Federal Home Loan Mortgage Corporation (Freddie Mac). These changes were announced by the Federal Housing Finance Agency in January 2023. The legislation aims to protect borrowers from potentially increased costs associated with these changes.