Congress passed the Enforcement Act.

This act was to counter any attacks on voting rights of African Americans from state officials or racist groups.

Source