In 2008 the Democrats had all three branches including a filibuster proof majority in the Senate and they could have enacted any gun law they wanted subject to court challenges.

They didn't.