卑猥 specifically means 'obscene' or 'lewd', focusing on sexual indecency, whereas 尾籠 covers a broader range of impropriety including bodily functions.
Etymology
The exact derivation is uncertain. The kanji 尾 (tail, end) and 籠 (basket, cage) are used phonetically or associatively; the word may have originally referred to something hidden or unclean.