For the third consecutive season, the Dallas Cowboys will play in a win-or-go-home game, this time at AT&T Stadium.

Tony Romo threw a 10-yard touchdown to DeMarco Murray on a fourth-and-goal play with 1 minute, 8 seconds left and Dan Bailey converted the extra point kick to give Dallas a 24-23 comeback win over Washington Sunday afternoon at rainy FedEx Field.

The win means the Cowboys improve to 8-7 and will host the Philadelphia Eagles next week in a winner-take-all showdown for the NFC East title and a playoff berth at AT&T Stadium. Philadelphia (8-6) hosts Chicago (8-6) later tonight.

“We did what we needed to do,” Dallas Coach Jason Garrett said. “We understood the situation we were in. We’re excited about the opportunity next week.”

Dallas has been in similar situations the past two seasons in regular-season final games, losing at Washington 28-18 last season and losing at the New York Giants 31-14 in 2011.

Trailing 23-17 with 3:39 left to play, the Cowboys drove 87 yards in nine plays for the game-winning touchdown.

Romo threw incomplete on first down then 15 yards to rookie Terrance Williams on second down. After another incompletion, Romo threw 51 yards to Williams and 17 yards to Dez Bryant for a first and goal at the 4.

On first down, Murray gained 3. On second down, Murray was dropped for no gain.

On third down, Murray ran left then tried to reverse his field and was tackled at the 10.

On fourth down, Romo, sliding to the right in the pocket, threw to Murray at the 2 and he spinned into the end zone.

Then several fights broke out near the goal line.

After off-setting penalties, Bailey’s extra point kick gave Dallas a 24-23 lead.

Washington got the ball back, but Kirk Cousins threw incomplete on fourth and 6 at their 17 and Dallas ran out the final 40 seconds for the win.

Romo, who injured his ankle early in the fourth quarter but stayed in the game, passed for 226 yards and two touchdowns with one interception.

“He got leg-whipped and was hobbling around,” Garrett said. “Tony did a good job buying time (in the pocket).”

Murray finished with 96 rushing yards on 22 carries and caught three passes for 15 yards, including the game-winning score.

“Balance was important for us in this game,” Garrett said.

The Cowboys started strong by forcing a punt on Washington’s first possession.

Michael Spurlock, who was signed by Dallas on Wednesday, returned the punt 62 yards before being pushed out of bounds at the Redskins’ 3.

Two plays later, Murray scored on a 3-yard run to give Dallas a 7-0 lead at the 12:49 mark.

After allowing two first downs, the Dallas defense forced a second punt, which rolled to the Cowboys’ 2.

Dallas gained 1 yards in three plays before Santana Moss returned Chris Jones’ punt 18 yards to the Cowboys’ 37.

Washington reached the 18 an open-field, third-down tackle by Orlando Scandrick on Pierre Garcon. On fourth down, Kai Forbath made a 36-yard field goal to make the score 7-3 with 4:15 left in the first half.

After forcing a punt, Washington drove to the Cowboys’ 9, but stalled.

On first down Alfred Morris gained 2 then Kirk Cousins hit fullback Darrel Young for 5 yards to the 2.

Back-to-back penalties pushed the Redskins back to the 12.

On third down, Cousins hit Santana Moss at the 2 and Forbath came in for a 22-yard field goal to make the score 7-6 with 7:36 left in the first half.

It was a small victory for a maligned defense which lost rookie DeVonte Holloman to injury on the drive.

Backed up to its own 7 after a holding penalty on the kickoff return, Murray reversed his field and ran 43 yards to midfield.

After a 4-yard run by Murray, Tony Romo threw 31 yards to Dez Bryant at the 15.

Two plays later, a scrambling Romo threw a 14-yard touchdown to Bryant in the back of the end zone to make it 14-6.

Washington drove to the Cowboys’ 28. On a third-and-10 play, Cousins’ pass bounced off Moss’ hands and was intercepted by Jeff Heath at the 7 with 47 seconds left in the half.

Murray has 62 rushing yards on eight carries. Romo has passed for 62 yards and one touchdown.