Court blocks provisions in immigration laws, lets some controversial ones stand