Leicester City move closer to Champions League qualification as they come from behind to beat Crystal Palace.