Immigration, gay marriage top legislative agenda