The main purpose of this legislation, known as the "No Bailout for Sanctuary Cities Act," is to restrict federal funding to jurisdictions that provide benefits to undocumented immigrants. The goal is to discourage states and local governments from adopting policies that protect or support individuals who are in the country without legal status.