Senate votes to give Mattis waiver as general testifies