Federal government survives second confidence vote amid two Conservative MPs leaving