The top four qualify for next season’s Champions League.
Inter were again without forward Mauro Icardi, who has not played since he was stripped of the captaincy in mid-February and then complained he had a knee injury.
The Argentine returned to training this week but was surprisingly left out by coach Luciano Spalletti.
Inter had more possession but created few real chances and could easily have lost by more.
Their keeper Samir Handanovic kept Lazio’s halftime lead to a single goal by blocking a Bastos header at point-blank range and turning away Luis Alberto’s effort with a one-handed save.
Handanovic then made a brilliant double save in the second half, first denying Felipe Caicedo after the Ecuadorean burst through the Inter defence and tried to chip the keeper, and then foiling Ciro Immobile from the rebound.
In the other evening match, Bologna moved out of the relegation zone when Mattia Destro scored in the sixth minute of stoppage time to give them a 2-1 win over visiting Sassuolo.
Substitute Erick Pulgar had put Bologna ahead with a penalty, his first touch of the game, before Jeremie Boga levelled two minutes into stoppage time.
Destro was then brought off the bench and headed in from a corner to lift Bologna to 17th on 27 points, two above Empoli who lost 1-0 at runaway leaders Juventus on Saturday.