expedient

adjective

(of an action) convenient and practical although possibly improper or immoral.

noun

A means of attaining an end, especially one that is convenient but possibly improper or immoral.