Erdogan gets weapons deals, more earthquake relief, and financial considerations to help the beleaguered Turkish economy (which tanked primarily due to his policies). In exchange he takes in more refugees and approves Sweden's entry into NATO. Everyone is happy.