US Senate agrees to debate ambitious gun bill