An extragalactic spectroscopic survey of the SSA22 field