If you say that someone is keeping the lid on an activity or a piece of information, you mean that they are restricting the activity or are keeping the information secret.
If you say that you want to keep a lid on the cost of doing something, you mean that you want to prevent it costing you more than you feel is reasonable.