Senate waves through military courts bill