Some of the biggest cannabis companies are backing a lawsuit to block any federal action against state-legal marijuana operators.