A federal judge has ruled that “the Massachusetts Museum of Contemporary Art has the right to display an immense unfinished installation by Christoph Büchel, a Swiss artist whose relationship with the museum fell apart early this year, leading to a bitter public battle over control of the work and over artists’ rights in general.”