Christian Porter’s job in the balance while PM considers legal advice