Portugal secures €400m to upgrade care facilities