Lurking behind the first government shutdown in 17 years are two starkly different views of how Americans see the health-care law championed by President Barack Obama.

In making the budget fight all about the law, popularly known as Obamacare, Republicans point to a program they say is broadly and consistently unpopular. Democrats see a program that Americans aren't quite sold on yet but believe should be given time to work—and they...