Immigration bill clears Senate test