The Le Chatelier Principle in optimal control problems