John McCain arrived on Capitol Hill early Thursday afternoon just as a bipartisan group of senators and representatives were announcing they had reached an agreement on the broad outlines of a bill to bail out Wall Street .