Man accused of killing wife appears in Sacramento court