Australia’s government loses by-elections, denting re-election prospects