Warriors win regular-season championship and secure home court for playoffs