CINCINNATI (AP) — The grieving Cowboys rallied for a significant win. Dan Bailey's 40-yard field goal as time ran out sent Dallas to a 20-19 victory over the Cincinnati Bengals on Sunday, ending a tough afternoon with playoff chances enhanced and more emotional days ahead. Dallas overcame a nine-point deficit in the closing minutes behind Tony Romo, who held his hand over his heart during a moment of silence to honor teammate Jerry Brown before the kickoff. Brown died in an auto accident early Saturday. Defensive lineman Josh Brent, who was driving, remained in jail in Irving, Texas, charged with intoxication manslaughter. The Cowboys (7-6) learned about Brown's death on their flight to Cincinnati on Saturday. Coach Jason Garrett told his team that the best way to honor him was to play well in a game with playoff implications for both teams. A late comeback was just enough to beat the Bengals (7-6), who had won four in a row and had a chance to move into position for an AFC wild-card berth with a victory. Instead, Romo pulled it out with another late comeback, which has been the Cowboys' way while winning four of their last five games. Romo threw a 27-yard touchdown pass to Dez Bryant with 6:35 to go. Anthony Spencer's sack of Andy Dalton forced a punt, and Romo completed four passes on the drive to Bailey's winning kick. Defensive tackle Jason Hatcher held up Brown's No. 53 jersey on the sideline as the Cowboys headed onto the field to celebrate. Romo finished 25 of 43 for 268 yards with a touchdown, an interception and three sacks. DeMarco Murray converted a third-and-5 play to extend the final drive and ended up with 53 yards on 21 carries. Newcomer Josh Brown kicked field goals of 25, 33, 25 and 52 yards for Cincinnati, which wasted an opportunity to move ahead of Pittsburgh for the second AFC wild card. Cowboys owner Jerry Jones described his team as "grieving" before the opening kickoff. Dallas played a sloppy game until the closing minutes — nothing out of character there — and had a few especially bad moments. Defensive coordinator Rob Ryan went onto the field arguing for a holding call against the Bengals in the third quarter, and the officials penalized the Cowboys for unsportsmanlike conduct. Dallas also was penalized for 12 men on the field during the drive, which ended with Brown's third field goal and a 16-10 Cincinnati lead. In the end, a defense that has allowed only three touchdowns in the last four games couldn't hold on. And the Bengals made it tough on themselves by using all three of their timeouts early in the second half, leaving them unable to stop the clock on Dallas' final drive. Dalton was 20 of 33 for 206 yards with five sacks, one touchdown and an interception that Brandon Carr returned 37 yards to set up Murray's 1-yard touchdown dive in the second quarter.