Czech Republic, Hungary, Slovakia opt out of taking part, while package agreed among 24 member states