PM appears to end crisis ahead of key High Court ruling, but insists cabinet vote appointing Likud ally Akunis was legal despite attorney general’s objection