Chief Justice John G. Roberts Jr. denied a last-minute request Tuesday afternoon to stay the District's same-sex marriage law, ruling against opponents of the measure who had wanted to bring it before city voters in a referendum.