WASHINGTON — Dozens of prominent Republicans — including top advisers to former President George W. Bush, four former governors and two members of Congress — have signed a legal brief arguing that gay people have a constitutional right to marry, a position that amounts to a direct challenge to Speaker John A. Boehner and reflects the civil war in the party since the November election.