British ministers given free vote on EU membership