(CNN) For the second day in a row, the House of Representatives passed legislation related to gun control, the latest proposal dubbed the so-called "Charleston loophole" bill, aimed at closing a gap in the background check system that allowed a man to purchase a gun and kill nine members of a church nearly four years ago.

The bill, HR 1112 was sponsored by Rep. Jim Clyburn, a South Carolina Democrat and -- as House Democratic whip -- the highest ranking African-American member of Congress.

The legislation addresses a loophole in current law that enables some firearms to be transferred by licensed gun dealers before the required background checks have been completed, a loophole that allowed Dylann Roof to buy a gun in 2015 and kill nine people at Mother Emanuel Church -- one of the most well known historically black churches in Charleston, South Carolina.

Due to Roof's prior admission during an arrest that he was in possession of drugs, he should not have been permitted to buy the gun he used in the massacre . However, an agent working for the FBI's background check system who was performing the review on Roof failed to contact Columbia, South Carolina, police, who arrested Roof, in part because of a clerical error in records listing the wrong agency. Because Roof's background check took longer than three days to complete, the gun shop owner was allowed to sell the gun to Roof. The law permits gun sellers to sell guns if a background check takes longer than three days to complete.

This bill, that passed 228-to-198 Thursday, would extend the background check review period from three days to 10 days, which lawmakers say will give the FBI more time to complete full background checks.

Read More