A Portugal court rejected four out of nine contested austerity measures from this year's budget in a ruling that deals a blow to government finances, but is unlikely to derail the bailed-out country's reforms.