The main purpose of this legislation is to strengthen the immigration laws regarding the detention of certain non-citizens who commit assault against law enforcement officers. It aims to ensure that individuals who engage in such violent acts are detained and potentially deported, thereby enhancing the safety of law enforcement personnel. Key provisions of the legislation include amendments to the Immigration and Nationality Act.