PHILADELPHIA — The Philadelphia district attorney on Tuesday charged two state representatives with bribery and other offenses in a case state Attorney General Kathleen Kane had rejected as too flawed to prosecute.

District Attorney Seth Williams dismissed Ms. Kane’s claim that the case had been fatally compromised by a deal given to a confidential informant who — according to the presentment of a Philadelphia grand jury — traded money for political favors with Democratic state Reps. Ronald Waters and Vanessa Lowery Brown. He also rejected her statement, made when the sting operation was made public in March, that the case contained evidence of racial targeting.

“As an African-American and as a law enforcement official, I was disgusted that the attorney general would bring racism into this case,” Mr. Williams said at a news conference. “It’s like pouring gasoline on a fire for no reason, no reason at all.”

Mr. Williams said recordings made by the informant, who posed as a lobbyist, showed that Mr. Waters, 64, and Ms. Lowery Brown, 48, had accepted payments in exchange for promises of political action. The two House members also testified to their actions, according to the presentment, with Mr. Waters admitting he had accepted nine payments totaling $8,750 and Ms. Lowery Brown saying she had taken five payments totaling $4,000.

Advertise with us

The two legislators were charged with criminal conspiracy, bribery in official and political matters, conflict of interest and failure to make required disclosures in statements of financial interest, according to the district attorney’s office. They turned themselves in Tuesday morning and were released on their own recognizance.

Fortunato N. Perri Jr., who represents Mr. Waters, said in an email that his client “will accept responsibility for his conduct and likely resolve this matter without the necessity for a trial.” Luther E. Weaver III, who represents Ms. Lowery Brown, confirmed she had appeared before a district judge in Dauphin County.

Mr. Waters, who represents parts of Philadelphia and Delaware County, served as House Democratic caucus secretary in the 2013-14 term. Ms. Lowery Brown, who represents part of Philadelphia, is chairwoman of the Pennsylvania Legislative Black Caucus.

In a statement Tuesday, a spokeswoman for Ms. Kane reiterated that the attorney general’s office had been troubled by elements of the case it inherited, including the deal to drop charges against the informant, whom it said had been indicted for defrauding a state food program for low-income children and seniors out of $430,000. (The presentment of the grand jury stated that “the case against the informant likely amounted to less than $100,000.”)