France has struck a compromise with Russia on a United Nations resolution that it said would prevent "mass atrocities" in besieged areas of Aleppo, Syria, where thousands of trapped civilians and rebel fighters await evacuation in freezing temperatures.