Japan’s new ruling Democratic Party clinched a deal on Wednesday to form a coalition with two tiny parties whose help it needs to pass laws smoothly.