Erling Haaland came off the bench to score the winning goal for Man City against a stubborn Fulham side.