Sydney light rail commuters have had their travel plans thrown into chaos after a tram caught on fire in the city’s inner suburbs.