Syrian government forces have entered two northern towns after U.S.-backed and Kurdish-led fighters agreed to evacuate.