Resignation of Anneliese Dodds shows challenges for prime minister as he pursues tough choices