President marks passage of federal gun law