Alpine's Pierre Gasly has been stripped of his third place at the Monaco Grand Prix and Isack Hadjar reinstated to third position, the FIA's International Court of Appeal has ruled.