The Senate is expected to take up the legislation before a midnight Friday shutdown deadline.