Ideals of operators and the approximation property