Chancellor Angela Merkel was handed a two-week ultimatum by her coalition partners to secure a European deal allowing German police to turn back some migrants at the border, a senior lawmaker said, potentially buying time to settle a standoff that has threatened to topple her government.