US government heads for shutdown as Republicans squabble over spending