Senator Carl Levin says big companies are abusing tax loopholes. Apple's Tim Cook says they uphold the spirit of the law.