Compromise sets up likely Senate debate on gun laws