The main purpose of this legislation is to provide funding for local law enforcement agencies through various grant programs. It aims to enhance public safety by supporting the hiring of police officers and improving law enforcement resources at the local level. Key provisions of the legislation include the allocation of funds specifically for a cops hiring program and the Edward Byrne Memorial Justice Assistance Grant Program. The bill amends existing laws to redirect funds that were previously designated for immigration enforcement to local police hiring initiatives.