The Buffalo Bills clinched their fourth consecutive playoff berth with a 32-29 win over the Miami Dolphins.