Portuguese government resigns