cale42 said:PWK tower doesn't control that airspace, Chicago approach does
Actually, O'Hare Tower does-- they've been delegated the surface to 3000' within a 5nm radius of the center of O'Hare. There is a LOA with PWK, of course, but it does not allow PWK traffic to enter ORD airspace in the situation given.
In short, PWK controllers do not have the authority to clear VFR traffic into the ORD Class B. However, they know precisely how far they can go without infringing on that airspace. It's probable that you were not quite as close to the Class B as you thought you were, and the tower controller knew it. That's no excuse for chewing you out on the frequency, however, and I'd follow up on that with the manager at PWK.
It's also possible that you were that close, in which case the tower screwed up. You have two unpleasant choices in such a situation: follow the instruction, request that the tape be preserved, and be prepared to argue that you were in the Class B due to a controller operational deviation (as opposed to a pilot deviation). You will most likely prevail in such a case, particularly since you questioned the controller about your proximity to the Class B and he reiterated the instruction.
The other option is to refuse the instruction and stay out of the Class B, citing your emergency authority. That's a harder case to make, since avoiding a citation for violation of the Class B might not be seen as a safety issue, particularly if the course you choose puts you closer to other aircraft than straying into the Class B would have.