Mason Greenwood's late penalty gave Marseille a 2-1 home win over Monaco and lifted the team over its rival into second place in the French league on Sunday.