Dan Bailey landed a 35-yard field goal with the last play of the match as the Dallas Cowboys edged out the New York Giants 24-21.