Whitehall job cuts could cost millions